package com.perceptivesoftware.licensing.server.rpc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.perceptivesoftware.licensing.client.common.util.SystemParmType;
import com.perceptivesoftware.licensing.client.dto.SystemParmDTO;
import com.perceptivesoftware.licensing.client.rpc.SystemService;
import com.perceptivesoftware.licensing.server.util.SystemServiceUtil;

@Service("systemService")
public class SystemServiceImpl extends RemoteServiceServlet implements SystemService {

	private static final long serialVersionUID = -8240319389545976230L;

	@Autowired
	private SystemServiceUtil systemServiceUtil;

	@Override
	public SystemParmDTO getSystemParmById(SystemParmType type) {
		return systemServiceUtil.getSystemParmById(type);
	}

	@Override
	public SystemParmDTO saveSystemParm(SystemParmDTO dto) {
		return systemServiceUtil.saveSystemParm(dto);
	}

	@Override
	public Boolean deleteSystemParm(SystemParmDTO dto) {
		return systemServiceUtil.deleteSystemParm(dto);
	}
}